import request from '@/utils/request'

// 查询绩效信息列表
export function listOfcperformance(query) {
  return request({
    url: '/sl/ofcperformance/list',
    method: 'get',
    params: query
  })
}

// 查询绩效信息详细
export function getOfcperformance(performanceId) {
  return request({
    url: '/sl/ofcperformance/' + performanceId,
    method: 'get'
  })
}

// 新增绩效信息
export function addOfcperformance(data) {
  return request({
    url: '/sl/ofcperformance',
    method: 'post',
    data: data
  })
}

// 修改绩效信息
export function updateOfcperformance(data) {
  return request({
    url: '/sl/ofcperformance',
    method: 'put',
    data: data
  })
}

// 删除绩效信息
export function delOfcperformance(performanceId) {
  return request({
    url: '/sl/ofcperformance/' + performanceId,
    method: 'delete'
  })
}
